package cn.edu.suse.epilepsy.entity.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Author: QingShu
 * @Date: 2024/7/10 22:44
 */
@Data
@TableName("tb_patient_info")
public class Patient {
    @TableId(value = "pa_id", type = IdType.AUTO)
    private Integer id;
    @TableField("pa_name")
    private String name;
    @TableField("pa_sex")
    private String sex;
    @TableField("pa_addr")
    private String addr;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @TableField("pa_ctime")
    private Date date;
    @TableField("pa_nub_visits")
    private Integer count;
    @TableField("hos_addr")
    private String hospital;
    @TableField("pa_doctor")
    private String doctor;
}
